void MyStreamCheckVersion(long theVersion, long minVersion, long maxVersion, const char *debugName)
#else
void MyStreamCheckVersion(long theVersion, long minVersion, long maxVersion, const char *)
#endif
{
if (theVersion < minVersion || theVersion > maxVersion)
{
#if qDebug
fprintf(stderr, "**** Incompatible %s disk version = %ld, min = %ld, cur = %ld. Aborts read of file.\n", debugName, theVersion, minVersion, maxVersion);
#endif
if (theVersion < minVersion)
FailOSErr(errTooOldFileFormat);
else
FailOSErr(errTooNewFileFormat);
}
#if qDebug
if (theVersion < maxVersion)
fprintf(stderr, "Reads old version %s: version = %ld, min = %ld, cur = %ld.\n", debugName, theVersion, minVersion, maxVersion);
#endif
}
#if qDebug
Boolean MyCheckVersion(long theVersion, long minVersion, long maxVersion, const char *debugName)
#else
Boolean MyCheckVersion(long theVersion, long minVersion, long maxVersion, const char *)
#endif
{
if (theVersion < minVersion)
{
#if qDebug
fprintf(stderr, "**** Incompatible %s disk version = %ld, min = %ld, cur = %ld. Doesn't read file - but no abort.\n", debugName, theVersion, minVersion, maxVersion);
#endif
return false;
}
if (theVersion > maxVersion)
{
#if qDebug
fprintf(stderr, "**** Incompatible %s disk version = %ld, min = %ld, cur = %ld. Aborts read of file.\n", debugName, theVersion, minVersion, maxVersion);
#endif
FailOSErr(errTooNewFileFormat);
}
#if qDebug
if (theVersion < maxVersion)
fprintf(stderr, "Reads old version %s: version = %ld, min = %ld, cur = %ld.\n", debugName, theVersion, minVersion, maxVersion);